<ul id="listap">
    <?php
    //Load::lib('general');
    foreach ($lista->items as $key) {
        echo "<li>";
        echo "<a href='" . $key->imagen . "' class='imagen' title='" . utf8_encode($key->autor) . "'><img src='" . $key->imagen . "' alt='" . utf8_encode($key->autor) . "' /></a>
            <div class='title_art'><a href='".PUBLIC_PATH."lista/" . str_replace(' ', '+', utf8_encode($key->autor)) . "'>" . utf8_encode($key->autor) . "</a></div>";
        echo "<div class='generos'><span style='font-weight:bold;'>Genero(s):</span> ";
        $generos = explode(',',$key->generos);
        $generosId = explode(',',$key->generosId);
        $i=0;
        foreach($generos as $genero){
           @$link = General::slugify(utf8_encode($genero));
           echo Html::link('genre/' . $generosId[$i] . '/' .$link . '/',htmlspecialchars(utf8_encode($genero)).', ');
           //echo '<a href="/genre/' . $generosId[$i] . '/' .$link . '/">' . htmlspecialchars(utf8_encode($genero)) . '</a>, '; 
           $i++;
        }
        echo"</div>";
        echo "</li>";
    }
    ?>
</ul>
<?php View::partial('paginators/classic', false, array('page' => $lista, 'url' => $controller_name . "/" . $country)); ?>
